]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/keyboard: Don't show the switcher with less than 2 items
authorRui Matos <tiagomatos@gmail.com>
Sat, 2 Mar 2013 15:51:00 +0000 (16:51 +0100)
committerRui Matos <tiagomatos@gmail.com>
Sun, 3 Mar 2013 23:30:04 +0000 (00:30 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=695000

js/ui/status/keyboard.js

index 3a9fc1c054d1ec211afce058a13043efd538179d..eb668fa196a9a7c52a3d6d163e2f7555ce7d20ae 100644 (file)
@@ -398,6 +398,9 @@ const InputSourceIndicator = new Lang.Class({
     },
 
     _switchInputSource: function(display, screen, window, binding) {
+        if (this._mruSources.length < 2)
+            return;
+
         let popup = new InputSourcePopup(this._mruSources, this._keybindingAction, this._keybindingActionBackward);
         let modifiers = binding.get_modifiers();
         let backwards = modifiers & Meta.VirtualModifier.SHIFT_MASK;